package com.specter.mvc.web;

/**
 * Note:Web工具常量
 * 
 * @author Liang.Wang
 * @version 2017-04-12
 */
public abstract class WebConsts {

	/** @see org.springframework.http.MediaType */
	protected WebConsts() {
		// 受保护的构造函数，允许子类访问
	}

	public static final String CONTENT_TYPE_TEXT = "text/plain";
	public static final String CONTENT_TYPE_HTML = "text/html";
	public static final String CONTENT_TYPE_XML = "text/xml";
	public static final String CONTENT_TYPE_JSON = "application/json";

	public static final String HEADER_NOCACHE = "no-cache:true";
	public static final String HEADER_ENCODING = "encoding:UTF-8";

	/** 分页页码：去参后转换成Long类型 */
	public static final String PARAMS_PAGENO = "specter_params_pageno";

	/** 分页类型：count/list/page @see com.specter.mvc.model.Request.QueryType */
	public static final String PARAMS_PAGE_TYPE = "specter_params_page_type";

	/** 分页大小：每页大小为20 */
	public static final String PARAMS_PAGE_LIMIT = "specter_params_page_limit";

}
